package waylines.waypoints
{
	import flash.geom.Point;
	import flash.geom.Line;
	
	public class Wayline extends Waypoint
	{
		public var rotation:Number;
		public var line:Line;
		
		public function Wayline(x : Number = 0, y : Number = 0, segmentLength : Number = 40, rotation:Number=0, strength : Number = 1, attenuationPower : Number = 0, epsilon : Number = 1)
		{
			super(x, y, segmentLength/2, strength, attenuationPower, epsilon);
			
			this.rotation = rotation;
			this.line = new Line(new Point(x - (radius * Math.cos(rotation)), y - (radius * Math.sin(rotation))), new Point(x + (radius * Math.cos(rotation)), y+(radius * Math.sin(rotation))));
		}
	}
}
